﻿using System;
using System.Web;

namespace Kratos.Framework.Function
{
    public static class KratosCookie
    {
        public static void Set(string key, string value, DateTime expires, bool encrypt)
        {
            var cookie = new HttpCookie(key)
                                    {
                                        Value = value,
                                        Expires = expires
                                    };
            HttpContext.Current.Response.Cookies.Add(cookie);
        }
    }
}
